package cn.itcast.dao.cargo;

import cn.itcast.domain.cargo.Contract;
import cn.itcast.domain.cargo.ContractExample;
import cn.itcast.vo.ContractProductVo;

import java.util.List;

public interface ContractDao {

    //删除
    int deleteByPrimaryKey(String id);

    //保存
    int insertSelective(Contract record);

    //条件查询
    List<Contract> selectByExample(ContractExample example);

    //id查询
    Contract selectByPrimaryKey(String id);

    //更新
    int updateByPrimaryKeySelective(Contract record);

    //根据船期查询出货表数据
    List<ContractProductVo> findByShipTime(String shipTime);
}